import { useEffect } from 'react'
import './01.custom'
const Page = () => {
    useEffect(() => {
        const ob = new PerformanceObserver((perObservers) => {
            // console.log('perObservers', perObservers)
            perObservers.getEntries().forEach((entry) => {
                console.log('entry', entry, entry.duration)
            })
        })
        ob.observe({ entryTypes: ['navigation'] })
        console.log(performance.now())
        console.log(performance.timeOrigin)

        console.log(performance)

        const handlePerformance = (event: any) => {
            console.log(event)
        }
        window.addEventListener('performance', handlePerformance)
    }, [])
    // PerformanceNavigationTiming
    return <div className='iterator'></div>
}
export default Page
